package com.isoftstone.common.service;


import com.isoftstone.common.entity.SysRole;
import com.isoftstone.merchant.entity.role.PRoleUserKey;

import java.util.List;

public interface ISysUserRoleService {
    
	//保存用户和角色的ID
	void saveUserRole(String userId, String roleId) throws Exception ;

	List<SysRole> getRolesByUserId(String userId) throws Exception;

	void deleteUserRole(String userId) throws Exception;

	List<String> getMenuIdsByUserId(String comUserCode) throws Exception;

    List<PRoleUserKey> getroleIdByOperatorId(String operatorId) throws Exception;

	String getUserId(int roleId)throws Exception;

    void updateUserRoleByUserIdAndRoleId(String userId, String roleId)throws Exception;
}
